from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.ext.declarative import declarative_base

import db
from users import user

class news(object):

	def __init__(self, **kwargs ):
		for k in kwargs.keys():
			setattr(self, k, kwargs[k])
	
	def lookupownerids(self):
		sess = db.getsession()
		allusers = sess.query(user).all()
		return allusers
